﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace CPPEI.PM.Shell
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            LoginWindow loginWindow = new LoginWindow();

            if (loginWindow.ShowDialog() != true)
            {
                Close();
                return;
            }

            SelectProjectWindow selectProjectWindow = new SelectProjectWindow();
            if (selectProjectWindow.ShowDialog() != true)
            {
                Close();
                return;
            }

            InitializeComponent();

            Event.UI.UIEventBus.Register(this._ctlNavigationView);
            Event.UI.UIEventBus.Register(this._ctlContainerView);
        }

        private void _ctlBtnCreateWorkItem_Click_1(object sender, RoutedEventArgs e)
        {
            Dialogs.DlgCreateWorkItem dlg = new Dialogs.DlgCreateWorkItem();
            if (dlg.ShowDialog() == true)
            {
            }
        }
    }
}
